import os


g = os.walk('clustered')

for path, dir_list, file_list in g:
    for file_name in file_list:
        if(file_name[-5:]=='.flac'):
            #print(path+'/'+file_name)
            os.remove(path+'/'+file_name)